package io.example.service;

import io.example.entity.Author;
import io.vertx.codegen.annotations.ProxyGen;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import java.util.List;

/**
 * Description: AuthorAsyncService.java .<br>
 * <p>Created Time: 2020/10/22 15:59 </p>
 *
 * @author <a href="mail to: mengxiangyuancc@gmail.com" rel="nofollow">孟祥元</a>
 */
@ProxyGen
public interface AuthorAsyncService {

    /**
     * The service address on the Vert.x event bus.
     */
    String ADDRESS = AuthorAsyncService.class.getName();

    /**
     * 生成EB调用.
     *
     * @param author
     * @param resultHandler
     */
    void add(Author author, Handler<AsyncResult<Author>> resultHandler);

    /**
     * 生产EB调用.
     *
     * @param resultHandler
     */
    void getAll(Handler<AsyncResult<List<Author>>> resultHandler);
}
